package com.yunji.base.dao;

import com.yunji.base.bo.ChangeBindBO;
import com.yunji.base.bo.StaffAccountModifyBO;
import com.yunji.base.dto.StaffFiledDTO;
import com.yunji.common.base.IBaseDao;
import com.yunji.common.model.domain.StaffDO;

import java.util.List;

/**
 * @author : peter-zhu
 * @date : 2024/12/13 15:01
 * @description : TODO
 **/
public interface IStaffDao extends IBaseDao<StaffDO> {
    List<String> searchTableField(StaffFiledDTO param);

    boolean changeAgent(ChangeBindBO bo);

    List<StaffDO> listByManagerId(Long managerId);

    List<StaffDO> listByAgentId(Long staffId);

    List<StaffDO> listByBelongId(Long belongId);

    boolean updateStaffAccount(StaffAccountModifyBO build);

    StaffDO getByPhone(String phone);

    boolean existsPhone(Long excludeId, String phone);
}
